import my.xh.excel.core.ValueConverter;

public class MyValueConverter implements ValueConverter {
    @Override
    public Object converter(Object value) {
        if(value !=null && Double.valueOf(value.toString())>=50D){
            return "老年";
        }
        if(value !=null && Double.valueOf(value.toString())>=30D){
            return "中年";
        }
        if(value !=null && Double.valueOf(value.toString())>=20D){
            return "青年";
        }
        if(value !=null && Double.valueOf(value.toString())>=10D){
            return "少年";
        }
        return "儿童";
    }
}
